﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PocketEngine.Images;
using PocketEngine.Engine;
using PocketEngine.Maths;
namespace PocketEngine.Lights
{
    public class pLight
    {
        public static pColor AmbientColor = pColor.Black;
        public static pLight Active = null;
        public pImage ShadowMap = null;
        
        public void Activate()
        {
            Active = this;
        }

        public pVec3 Position
        {
            get
            {
                return mPos;
            }
            set
            {
                mPos = value;
            }
        }
        private pVec3 mPos = new pVec3(0, 0, 0);

        public pColor DiffuseColor
        {
            get
            {
                return mDiffCol;
            }
            set
            {
                mDiffCol = value;
            }
        }
        private pColor mDiffCol = pColor.White;

        public pColor SpecularColor
        {
            get
            {
                return mSpecCol;
            }
            set
            {
                mSpecCol = value;
            }
        }
        private pColor mSpecCol = pColor.Black;
        
        public float LightRange
        {
            get
            {
                return mRange;
            }
            set
            {
                mRange = value;
            }
        }
        private float mRange = 250;
    }
}
